#ifndef MAINW_H
#define MAINW_H
#include<QSqlDatabase>
#include <QMainWindow>
#include <QSqlQueryModel>
namespace Ui {
    class MainW;
}

class MainW : public QMainWindow {
    Q_OBJECT
public:
    MainW(QWidget *parent = 0);
    ~MainW();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainW *ui;
    QSqlDatabase db ;
     QSqlQueryModel *model;
private slots:
    void on_pushButton_3_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
};

#endif // MAINW_H
